import HeaderBack from "@/components/HeaderBack";
import { getTranslations } from "next-intl/server";
import { ReactNode } from "react";
import Search from "./search";
export const generateMetadata = async () => {
    const t = await getTranslations("titles");
    return {
        title: "Lista",
    };
};
export default async function Layout({
    children,
    params: { locale },
}: {
    children: ReactNode;
    params: { locale: string };
}) {
    return (
        <div className="gameList2Page h-[100%] overflow-auto">
            <HeaderBack
                showBack={true}
                title={<div className="flex justify-center">Lista</div>}
                Right={<Search></Search>}
                showBonus={false}
            ></HeaderBack>
            <main className={"main-header"}>{children}</main>
        </div>
    );
}
